/* flexible每一份份数 */
@baseFont: 54rem;

/* tips开始 */
.tips {
  width: 10rem;
  height: 45rem / @baseFont;
  background-color: #333;
  line-height: 45rem / @baseFont;
  text-align: center;
  color: #fff;
  font-size: 14rem / @baseFont;
  > div {
    float: left;
    height: 45rem / @baseFont;
  }
  div:nth-child(1) {
    width: 8%;
    img {
      // display: block;
      width: 10rem / @baseFont;
      vertical-align: middle;
    }
  }
  div:nth-child(2) {
    width: 10%;
    img {
      width: 30rem / @baseFont;
      vertical-align: middle;
    }
  }
  div:nth-child(3) {
    width: 57%;
  }
  div:nth-child(4) {
    width: 25%;
    background-color: red;
  }
}
/* tips结束 */
/* search-box开始 */
header.search-box {
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  width: 10rem;
  height: 44rem / @baseFont;
  background-color: #ca271b;
  line-height: 44rem / @baseFont;
  > div {
    height: 44rem / @baseFont;
  }
  .search-btn {
    position: absolute;
    width: 40rem / @baseFont;
    left: 0;
    i {
      display: block;
      width: 20rem / @baseFont;
      height: 20rem / @baseFont;
      margin: 14rem / @baseFont 0 0 15rem / @baseFont;
      background: url('../images/s-btn.png') no-repeat;
      background-size: 20rem / @baseFont auto;
    }
  }
  .search {
    position: relative;
    width: 100%;
    margin: 7rem / @baseFont 50rem / @baseFont;
    height: 30rem / @baseFont;
    border-radius: 15rem / @baseFont;
    background-color: #fff;
    overflow: hidden;
    span {
      position: relative;
      float: left;
      width: 20rem / @baseFont;
      height: 15rem / @baseFont;
      margin: 8rem / @baseFont 8rem / @baseFont 0 15rem / @baseFont;
      background: url('../images/logo2.png') no-repeat;
      background-size: 20rem / @baseFont auto;
      &::after {
        position: absolute;
        right: -8rem / @baseFont;
        content: "";
        width: 1rem / @baseFont;
        height: 15rem / @baseFont;
        background-color: #ccc;
      }
    }
    i {
      float: left;
      width: 18rem / @baseFont;
      height: 15rem / @baseFont;
      margin: 8rem / @baseFont 0 0 15rem / @baseFont;
      background: url('../images/jd-sprites.png') no-repeat -84rem / @baseFont 0;
      background-size: 200rem / @baseFont auto;
    }
    input {
      z-index: 0;
      position: absolute;
      left: 0;
      border: none;
      width: 100%;
      height: 30rem / @baseFont;
      padding: 0 20rem / @baseFont 0 78rem / @baseFont;
      background-color: transparent;
      font-size: 12rem / @baseFont;
    }
  }
  .login {
    position: absolute;
    width: 40rem / @baseFont;
    right: 0;
    top: 0;
    color: #fff;
    font-size: 14rem / @baseFont;
  }
}
/* search-box结束 */
/* main开始 */
main.content {
  overflow-x: hidden;
  width: 10rem;
  .banner {
    position: relative;
    width: 100%;
    height: 200rem / @baseFont;
    .banner-bg {
      height: 200rem / @baseFont;
      position: absolute;
      top: 0;
      width: 150%;
      height: 143rem / @baseFont;
      transform: translate(-16.6666666666%);
      background-image: linear-gradient(to bottom, #ca271b, #f1503b);
      border-radius: 0 0 50% 50%;
    }
    ul {
      z-index: 1;
      position: relative;
      margin: 0;
      padding: 0;
      list-style: none;
      li {
        position: absolute;
        padding: 0 3.33%;
        width: 100%;
        a {
          display: block;
          width: 100%;
          img {
            display: block;
            width: 100%;
            border-radius: 10rem / @baseFont;
          }
        }
      }
    }
  }
  .recommend {
    // padding: 0 3.33%;
    position: relative;
    z-index: 5;
    overflow: hidden;
    a {
      float: left;
      width: 33.33%;
      // width: 100%;
      img {
        display: block;
        width: 100%;
      }
    }
  }
  /* 导航区 */
  nav.nav {
    width: 100%;
    overflow: hidden;
    text-align: center;
    a {
      float: left;
      display: block;
      width: 20%;
      text-decoration: none;
      img {
        display: block;
        width: 40rem / @baseFont;
        height: 40rem / @baseFont;
        margin: 10rem / @baseFont auto 0;
      }
      span {
        display: block;
        font-size: 12rem / @baseFont;
        height: 18rem / @baseFont;
        line-height: 18rem / @baseFont;
        color: #666;
        margin-top: 6rem / @baseFont;
      }
    }
  }
  /* 新人专享 */
  .new {
    width: 100%;
    padding: 0 3.33%;
    margin-top: 6rem / @baseFont;
    overflow: hidden;
    a {
      float: left;
      width: 50%;
      img {
        display: block;
        width: 100%;
      }
    }
  }
  /* 为你推荐专区 */
  .recommend-for-you {
    width: 10rem;
    margin-top: 10rem / @baseFont;
    .title {
      a {
        display: block;
        width: 100%;
        img {
          display: block;
          width: 100%;
        }
      }
    }
    .goodslist {
      overflow: hidden;
      .goodslist-item {
        float: left;
        width: 50%;
        padding: 0 1.5% 0 3%;
        margin-bottom: 10rem / @baseFont;
        font-size: 14rem / @baseFont;
        &:nth-child(2n) {
          padding: 0 3% 0 1.5%;
        }
        .content {
          width: 100%;
          height: 360rem / @baseFont;
          background-color: #fff;
          border-radius: 10rem / @baseFont;
          overflow: hidden;
          .img-box {
            position: relative;
            height: 0;
            padding-top: 248rem / @baseFont;
            img {
              position: absolute;
              top: 0;
              width: 100%;
            }
          }
          > span {
            padding: 0 2.22222%;
            // text-indent: 1em;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
          }
          p {
            overflow: hidden;
            span:nth-child(1) {
              color: #fa2c19;
              float: left;
              font-size: 20rem / @baseFont;
            }
            span:nth-child(2) {
              float: right;
              height: 22rem / @baseFont;
              background-color: #f0f2f5;
              color: #808080;
              padding: 0 8rem / @baseFont;
              border-radius: 22rem / @baseFont;
              font-size: 16rem / @baseFont;
              line-height: 22rem / @baseFont;
            }
          }
        }
      }
    }
  }
  /* 为你推荐专区结束 */
}
/* main结束 */